package com.bigfire.dtm.shared.utils;

import com.bigfire.dtm.shared.enums.Gender;
import com.bigfire.dtm.shared.enums.UserState;
import org.springframework.stereotype.Component;

/**
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年05月05日 17:57
 */
@Component
public class EnumUtils {

    public Gender toGender(Integer value) {
        return Gender.parse(value);
    }

    public UserState toUserState(Integer value) {
        return UserState.parse(value);
    }
}
